<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户收藏管理</title>
    <link href="../css/admin/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.8.3.min.js" type="text/javascript"></script >
    <script>
        $(function (){
            $.get("",function (res){
                if (res.code == 202){
                    window.parent.location.replace("../login.html");
                }else if (res.code == 500){
                    alert(res.msg);
                }else {
                    console.log(res)
                    var str="";
                    for (let i = 0; i < res.data.length; i++) {
                        str += "<tr align='center'>";
                        str += "<td>"+(i+1)+"</td>"
                        str+="<td>"+res.data[i].content+"</td>";
                        str+="</tr>";
                    }
                    $("#tableId").append(str);
                }
            },"json")
        })
    </script>
</head>
<body>
<div class="rightinfo">

    <!--数据列表 -->
    <table class="tablelist" id="tableId">
        <tr>
            <th>id</th>
            <th>新闻标题</th>
            <th>新闻摘要</th>
            <th>查看新闻内容</th>
        </tr>
    </table>
</div>
</body>
</html>